package com.traffic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 出差申请对象 per_business_trip_application
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
public class PerBusinessTripApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出差申请ID */
    private Long tripId;

    /** 用户 */
    @Excel(name = "用户")
    private String user;

    /** 部门 */
    @Excel(name = "部门")
    private String department;

    /** 出差开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出差开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 出差结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出差结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 经费来源（金额） */
    @Excel(name = "经费来源", readConverterExp = "金=额")
    private Long fundSource;

    /** 出差天数 */
    @Excel(name = "出差天数")
    private String tripDays;

    /** 出差原因 */
    @Excel(name = "出差原因")
    private String reason;

    /** 出差申请状态 */
    @Excel(name = "出差申请状态")
    private String status;

    /** 交通工具 */
    @Excel(name = "交通工具")
    private String vehicle;

    /** 出差地点 */
    @Excel(name = "出差地点")
    private String businessLocation;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setTripId(Long tripId) 
    {
        this.tripId = tripId;
    }

    public Long getTripId() 
    {
        return tripId;
    }
    public void setUser(String user) 
    {
        this.user = user;
    }

    public String getUser() 
    {
        return user;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setFundSource(Long fundSource) 
    {
        this.fundSource = fundSource;
    }

    public Long getFundSource() 
    {
        return fundSource;
    }
    public void setTripDays(String tripDays) 
    {
        this.tripDays = tripDays;
    }

    public String getTripDays() 
    {
        return tripDays;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setVehicle(String vehicle) 
    {
        this.vehicle = vehicle;
    }

    public String getVehicle() 
    {
        return vehicle;
    }
    public void setBusinessLocation(String businessLocation) 
    {
        this.businessLocation = businessLocation;
    }

    public String getBusinessLocation() 
    {
        return businessLocation;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tripId", getTripId())
            .append("user", getUser())
            .append("department", getDepartment())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("fundSource", getFundSource())
            .append("tripDays", getTripDays())
            .append("reason", getReason())
            .append("status", getStatus())
            .append("vehicle", getVehicle())
            .append("businessLocation", getBusinessLocation())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
